package org.sgx.jsutil.nativable;

import com.google.gwt.core.client.JavaScriptObject;

/**
 * Java instances that are able to transform their self into JavaScriptObject s. 
 * 
 * <p>Users should implement this interface and use GWT.create() for auto generate the toNative() method 
 * from an annotated Java class.
 * </p> 
 * 
 * TODO: document more formally, example.
 * 
 * @author sg
 * 
 */
public interface Nativable {
	JavaScriptObject toNative();
}
